home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1980-02-10 | 1.8 KB | 93 lines |
- Screen Open 0,320,200,32,L
- Load "dh1:power_bobs/demo.abk"
- Hide On
- For I=1 To 15
- Cls 0
- Circle 16,16,I
- Get Bob I,0,0 To 32,32
- Next
- Unpack 10 To 0
- Bob Update Off
- Sprite Update Off
- Double Buffer
- Autoback 0
- Make Mask
- Extension_13_0006 8
- Extension_13_0094 True
- For I=1 To 8
- Extension_13_003C I,32
- Next
- Extension_13_00FE
- '
- 'Don't bother about the AMAL setup, just for testing...
- '
- For I=0 To 8 Step 2
- A$="Let X=Z(120);Let Y=Z(100)+Z(50);Let R0=-1;Let R1=-1;Let A=Z(12)+2;"
- A$=A$+"Loop: P ;P;"
- A$=A$+"Let X=X+R0 ;"
- A$=A$+"If X>250 Jump Reset ;"
- A$=A$+"If X<0 Jump Reset ;"
- A$=A$+"Let A=A+R1;"
- A$=A$+"If A<2 Jump Image;"
- A$=A$+"If A>14 Jump Image;"
- A$=A$+"Jump Loop ;"
- A$=A$+"Reset: ;"
- A$=A$+"Let R0=R0*-1 ;"
- A$=A$+"Jump Loop ;"
- A$=A$+"Image: ;"
- A$=A$+"Let R1=R1*-1 ;"
- A$=A$+"Jump Loop ;"
- Amal I,A$
- Next
- For I=1 To 7 Step 2
- A$="Let X=Z(220)+Z(50); Let Y=Z(160)+Z(10);Let R0=1;Let R1=1;Let A=Z(12)+2;"
- A$=A$+"Loop: P ;P;"
- A$=A$+"Let X=X+R0 ;"
- A$=A$+"If X>250 Jump Reset ;"
- A$=A$+"If X<0 Jump Reset ;"
- A$=A$+"Let A=A+R1;"
- A$=A$+"If A<2 Jump Image;"
- A$=A$+"If A>14 Jump Image;"
- A$=A$+"Jump Loop ;"
- A$=A$+"Reset: ;"
- A$=A$+"Let R0=R0*-1 ;"
- A$=A$+"Jump Loop ;"
- A$=A$+"Image: ;"
- A$=A$+"Let R1=R1*-1 ;"
- A$=A$+"Jump Loop ;"
- Amal I,A$
- Next
- '
- 'Assign the Pbobs to an Amal channel...
- '
- For I=2 To 9
- Extension_13_0272 I-2 To I-1
- Next
- '
- 'Let's go !
- '
- Amal On
- Extension_12_0016
- R=Execall(-132)
- ' Whe use 2 Pause instructions in the Amal progs, so synchronize it to
- ' the same speed.
- Extension_13_02A0 2
- Repeat
- ' Ok transfer the X/Y and A values to the Pbobs.
- '
- Extension_13_028C 1 To 8
- '
- ' Try it with Pbob Clear/Draw, it also works...isn't this GREAT ???
- ' Pbob Clear 1 To 8
- ' Pbob Draw 1 To 8
- '
- '
- Extension_13_00FE
- Screen Swap
- Wait Vbl
- Until Extension_12_0392
- R=Execall(-138)
- Extension_12_0006
- Erase 1
- Erase 10
- End